Skip to content

docs: TLS configuration #1369

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

javier-aliaga
Copy link
Contributor

Description

Modify docs to document new TLS Configuration for grpc connections

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #[issue number]

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

Signed-off-by: Javier Aliaga <[email protected]>
Copy link
Contributor

@cicoyle cicoyle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. Think we can take this out of draft and merge as is unless you were planning to add more? :)

@javier-aliaga javier-aliaga marked this pull request as ready for review May 20, 2025 10:01
@javier-aliaga javier-aliaga requested review from a team as code owners May 20, 2025 10:01
@javier-aliaga
Copy link
Contributor Author

lgtm. Think we can take this out of draft and merge as is unless you were planning to add more? :)

Lets merge it! 😄

Copy link
Contributor

@artur-ciocanu artur-ciocanu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@javier-aliaga thanks a lot for documenting this. Could you please add the Java property approach alongside the env vars one.

@@ -40,6 +40,14 @@ If your Dapr instance is configured to require the `DAPR_API_TOKEN` environment
set it in the environment and the client will use it automatically.
You can read more about Dapr API token authentication [here](https://docs.dapr.io/operations/security/api-token/).

Copy link
Contributor

@artur-ciocanu artur-ciocanu May 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@javier-aliaga for completeness you should mention that GRPC TLS related configs can be passed either via env vars or Java properties.

Here are the property names corresponding to env vars:

  • dapr.grpc.tls.insecure
  • dapr.grpc.tls.ca.path
  • dapr.grpc.tls.cert.path
  • dapr.grpc.tls.key.path

CC: @cicoyle @salaboy

Copy link

codecov bot commented May 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.57%. Comparing base (d759c53) to head (1f9db8e).
Report is 149 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1369      +/-   ##
============================================
+ Coverage     76.91%   77.57%   +0.66%     
- Complexity     1592     1776     +184     
============================================
  Files           145      205      +60     
  Lines          4843     5472     +629     
  Branches        562      599      +37     
============================================
+ Hits           3725     4245     +520     
- Misses          821      907      +86     
- Partials        297      320      +23     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cicoyle
Copy link
Contributor

cicoyle commented May 21, 2025

I ended up opening this PR to address the lack of documentation and fix the system properties aligning with the env vars. If we like the approach I took in my PR we can close this one out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants